<?php

require_once 'quickstart-loading-re.php';

function login($credentials){

	$u = $credentials->get('USER_NAME');
	$p = $credentials->get('PASSWORD');
	
	//login code...
}

$t = re::tuple($_POST);
if( $t->degree() != 0 ){
	login($t->project(array('USER_NAME', 'PASSWORD')));
}

//html code to submit the login attempt.
